package com.xszx.file.controller;

import com.xszx.server.dto.AjaxJson;
import com.xszx.server.dto.Page;
import com.xszx.server.entity.UploadFile;
import com.xszx.server.service.UploadFileService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/uploadFile")
public class UploadFileController {
    @Resource
    private UploadFileService uploadFileService;

    @PostMapping("/getAllUploadFiles")
    public Page getAllUploadFiles(@RequestBody Page page){
        return uploadFileService.getAllUploadFiles(page);
    }
}
